package com.cash.loan.modular.cash.service;

import com.cash.loan.modular.cash.model.CashVersion;
import com.cash.loan.modular.cash.result.PageResult;
import com.cash.loan.modular.cash.transfer.CashVersionDto;
import com.cash.loan.modular.cash.transfer.UpdateCashVersionDto;

/**
 * @author Administrator
 * @Date 2018-10-08 11:32
 */
public interface CashVersionService {

    /**
     * 列表
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageResult<CashVersion> list(Integer pageNo, Integer pageSize);

    /**
     * 新增
     * @param cashVersion
     * @return
     */
    Boolean add(CashVersionDto cashVersion);

    /**
     * 修改
     * @param cashVersion
     * @return
     */
    Boolean update(UpdateCashVersionDto cashVersion);

    /**
     * 详情
     * @param id
     * @return
     */
    CashVersion detail(Integer id);

    /**
     * 修改状态
     * @param id
     * @param status
     * @return
     */
    Boolean updateStatus(Integer id,Integer status);

    /**
     * 删除
     * @param id
     * @return
     */
    Boolean delete(Integer id);
}
